#include <iostream>
#include <math.h>
#include <set>


using namespace std;

int main()
{
    long long int sol = 0;


    set<double> mymultiset;


    for (int e = 2; e <= 100; e++)
    {
        for (int b = 2; b <=100; b++)
        {
            mymultiset.insert(pow(b,e));
        }

    }

sol = mymultiset.size();

cout << sol;
   return 0;
}










